Skip to content

Add ResourceCleaner for stop containers after exit (#104) - #208

Merged
tillahoffmann merged 4 commits into
testcontainers:masterfrom
mrk-andreev:issue-104
Jan 5, 2023
Merged

tillahoffmann merged 4 commits into
testcontainers:masterfrom
mrk-andreev:issue-104

Conversation

@mrk-andreev

Copy link
Copy Markdown

I suggest to stop all containers after application stop. I used atexit like JVMHookResourceReaper in testcontainers-java.

@codecov-commenter

codecov-commenter commented Apr 25, 2022 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 61.53846% with 5 lines in your changes missing coverage. Please review.

Project coverage is 86.72%. Comparing base (c5b7b1c) to head (d32e089).
Report is 342 commits behind head on master.

Files with missing lines Patch % Lines
testcontainers/core/docker_client.py 61.53% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #208      +/-   ##
==========================================
- Coverage   87.12%   86.72%   -0.41%     
==========================================
  Files          30       30              
  Lines         839      851      +12     
  Branches       58       58              
==========================================
+ Hits          731      738       +7     
- Misses         78       83       +5     
  Partials       30       30              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread testcontainers/core/docker_client.py Resolved
Comment thread testcontainers/core/docker_client.py Resolved
Comment thread testcontainers/core/cleaner.py Resolved
@gaby

gaby commented Aug 29, 2022

Copy link
Copy Markdown

@mrk-andreev Any updates on this?

@tillahoffmann
tillahoffmann merged commit 8ab1024 into testcontainers:master Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants